<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <title>后台管理系统</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta
            content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
            name="viewport">

    <link rel="stylesheet" href="css/bootstrap.css" >
    <link rel="stylesheet" href="css/font-awesome.css" >
    <!-- Ionicons -->
    <link rel="stylesheet" href="css/ionicons.css">
    <!-- Theme style -->
    <link rel="stylesheet" href="css/AdminLTE.css" >
    <!-- AdminLTE Skins. We have chosen the skin-blue for this starter
              page. However, you can choose any other skin. Make sure you
              apply the skin class to the body tag so the changes take effect. -->
    <link rel="stylesheet" href="css/skin-blue.min.css">



    <!-- jQuery 3 -->
    <script src="js/jquery-3.3.1.min.js" th:src="@{/js/jquery-3.3.1.min.js}"></script>
    <!-- Bootstrap 3.3.7 -->
    <script src="js/bootstrap.js" th:src="@{/js/bootstrap.min.js}"></script>

    <!-- AdminLTE App -->
    <script src="js/adminlte.js" th:src="@{/js/adminlte.js}"></script>



</head>
<!--
BODY TAG OPTIONS:
=================
Apply one or more of the following classes to get the
desired effect
|---------------------------------------------------------|
| SKINS         | skin-blue                               |
|               | skin-black                              |
|               | skin-purple                             |
|               | skin-yellow                             |
|               | skin-red                                |
|               | skin-green                              |
|---------------------------------------------------------|
|LAYOUT OPTIONS | fixed                                   |
|               | layout-boxed                            |
|               | layout-top-nav                          |
|               | sidebar-collapse                        |
|               | sidebar-mini                            |
|---------------------------------------------------------|
-->
<body class="hold-transition skin-green sidebar-mini">
<div class="wrapper">

    <!-- Main Header -->
    <header class="main-header">

        <!-- Logo -->
        <a href="#" class="logo"> <!-- mini logo for sidebar mini 50x50 pixels -->
            <span class="logo-mini"><b>C</b>RM</span> <!-- logo for regular state and mobile devices -->
            <span class="logo-lg"><b>XXXX系统后台</b> </span>
        </a>

        <!-- Header Navbar -->
        <nav class="navbar navbar-static-top" role="navigation">
            <!-- Sidebar toggle button-->
            <a href="#" class="sidebar-toggle" data-toggle="push-menu"
               role="button"> <span class="sr-only">Toggle navigation</span>
            </a>
            <!-- Navbar Right Menu -->
            <div class="navbar-custom-menu">
                <ul class="nav navbar-nav">

                    <!-- User Account Menu -->
                    <li class="dropdown user user-menu">
                        <!-- Menu Toggle Button --> <a href="#" class="dropdown-toggle"
                                                       data-toggle="dropdown"> <!-- The user img in the navbar--> <img
                            th:src="@{/img/1.png}" class="user-image" alt="User Image">
                        <!-- hidden-xs hides the username on small devices so only the img appears. -->
                        <span class="hidden-xs">用户</span>
                    </a>
                        <ul class="dropdown-menu">
                            <!-- The user img in the menu -->
                            <li class="user-header"><img th:src="@{/img/1.png}"
                                                         class="img-circle" alt="User Image">

                                <p>
                                    用户信息 <small>2019-2020</small>
                                </p></li>


                            <!-- Menu Footer-->
                            <li class="user-footer">
                                <div class="pull-left">
                                    <!-- <a href="#" class="btn btn-default btn-flat">简介</a> -->
                                </div>
                                <div class="pull-right">
                                    <form id="submitToken" action="/loginout" method="post">
                                        <input type="submit" id="loginout" name="loginout" value="退出"/>
                                    </form>
                                    <!-- <a href="/loginout" class="btn btn-default btn-flat">退出</a> -->
                                </div>
                            </li>
                        </ul>
                    </li>
                    <!-- Control Sidebar Toggle Button -->

                </ul>
            </div>
        </nav>
    </header>
    <!-- Left side column. contains the logo and sidebar -->
    <aside class="main-sidebar">

        <!-- sidebar: style can be found in sidebar.less -->
        <section class="sidebar" >

            <!-- Sidebar Menu -->
            <ul class="sidebar-menu" data-widget="tree">
                <li class="header"><span class="fa-lg">系统菜单</span></li>
                <!-- Optionally, you can add icons to the links -->
                <li class="treeview"><a href="#"><i class="fa fa-link"></i>
                    <span>账号管理</span> <span class="pull-right-container"> <i
                            class="fa fa-angle-left pull-right"></i>
						</span> </a>
                    <ul class="treeview-menu">
                        <li><a href="javascript:void(0)" class="myLeftMenu"
                               data="/useredit">修改账号</a></li>

                    </ul>
                </li>


            </ul>
            <!-- /.sidebar-menu -->
        </section>
        <!-- /.sidebar -->
    </aside>

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
        <!-- Content Header (Page header) -->

        <!-- Main content -->
        <section class="content container-fluid">
            <div id="container">



            </div>
        </section>

    </div>
    <!-- /.content-wrapper -->

    <!-- Main Footer -->
    <footer class="main-footer">
        <!-- To the right -->
        <div class="pull-right hidden-xs">
            <!--  Anything you want -->
        </div>
        <!-- Default to the left -->
        <p class="text-center">
            <strong>Copyright &copy; 2020 E.R.Bridge.
            </strong> 版权所有.
        </p>


    </footer>
</div>


<!-- REQUIRED JS SCRIPTS -->


<script>


    $(function () {
        $('ul.sidebar-menu li').click(function () {
            var li = $('ul.sidebar-menu li.active');
            li.removeClass('active');
            $(this).addClass('active');
        });

        //以下为示例函数
        $('.myLeftMenu').click(function (e) {
            $.ajax({
              //  url: $(this).attr('data'),//地址自己添加
                url:'/useredit',
                type: 'GET',
                data:{"userid":1},

                success: function (data) {
                    try {
                        $("#container").html(data);
                    } catch (e) {

                    }
                },
                error: function () {
                   // toastr.error("error!");
                }
            });
        });


    })


</script>

<!-- Optionally, you can add Slimscroll and FastClick plugins.
 Both of these plugins are recommended to enhance the
 user experience. -->
</body>
</html>